module.exports=app=>{
    const {router,controller} =app
    const adminAuthor = app.middleware.adminauth()
    router.get("/admin/login",controller.admin.index.Login)
    router.get("/admin/checklogin",controller.admin.index.checkLogin)
    router.get("/admin/getTypeInfo",adminAuthor,controller.admin.index.getTypeInfo)
    router.post("/admin/add_article",adminAuthor,controller.admin.index.addArticle)
    router.post("/admin/update_article",adminAuthor,controller.admin.index.updateArticle)
    router.get("/admin/article_list",adminAuthor,controller.admin.index.getArticleList)
    router.get("/admin/delete_article_by_id",adminAuthor,controller.admin.index.deleteArticle)
    router.get("/admin/getarticleById",adminAuthor,controller.admin.index.getArticleById)
    router.get("/admin/logout",adminAuthor,controller.admin.index.logout)
}